package com.shigen.file.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 二级菜单项
 * </p>
 *
 * @author shigen.fu
 * @since 2022-06-04
 */
@TableName("second_menu")
@ApiModel(value = "SecondMenu对象", description = "二级菜单项")
public class SecondMenu implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("二级菜单项的id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("二级菜单项显示的图标")
    private String icon;

    @ApiModelProperty("二级菜单项的链接地址")
    private String url;

    @ApiModelProperty("二级菜单项显示的文字")
    private String name;

    @ApiModelProperty("二级菜单项的父菜单项id")
    private Integer pId;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getpId() {
        return pId;
    }

    public void setpId(Integer pId) {
        this.pId = pId;
    }

    @Override
    public String toString() {
        return "SecondMenu{" +
        "id=" + id +
        ", icon=" + icon +
        ", url=" + url +
        ", name=" + name +
        ", pId=" + pId +
        "}";
    }
}
